package com.yzt.zhuju.network.entity.dynamic;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 作者：bobwang
 * 创建时间：2023-10-12 00:27:39
 * 描述：
 */
public class GameScriptBean implements Parcelable {

    private String cover;
    private String dsc;
    private int gameId;
    private String suggestDuration;
    private String suggestPeopleNum;
    private String title;
    private boolean using;
    private boolean isChecked;

    public GameScriptBean() {
    }

    protected GameScriptBean(Parcel in) {
        cover = in.readString();
        dsc = in.readString();
        gameId = in.readInt();
        suggestDuration = in.readString();
        suggestPeopleNum = in.readString();
        title = in.readString();
        using = in.readByte() != 0;
        isChecked = in.readByte() != 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(cover);
        dest.writeString(dsc);
        dest.writeInt(gameId);
        dest.writeString(suggestDuration);
        dest.writeString(suggestPeopleNum);
        dest.writeString(title);
        dest.writeByte((byte) (using ? 1 : 0));
        dest.writeByte((byte) (isChecked ? 1 : 0));
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<GameScriptBean> CREATOR = new Creator<GameScriptBean>() {
        @Override
        public GameScriptBean createFromParcel(Parcel in) {
            return new GameScriptBean(in);
        }

        @Override
        public GameScriptBean[] newArray(int size) {
            return new GameScriptBean[size];
        }
    };

    public boolean isChecked() {
        return isChecked;
    }

    public void setChecked(boolean checked) {
        isChecked = checked;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public String getDsc() {
        return dsc;
    }

    public void setDsc(String dsc) {
        this.dsc = dsc;
    }

    public int getGameId() {
        return gameId;
    }

    public void setGameId(int gameId) {
        this.gameId = gameId;
    }

    public String getSuggestDuration() {
        return suggestDuration;
    }

    public void setSuggestDuration(String suggestDuration) {
        this.suggestDuration = suggestDuration;
    }

    public String getSuggestPeopleNum() {
        return suggestPeopleNum;
    }

    public void setSuggestPeopleNum(String suggestPeopleNum) {
        this.suggestPeopleNum = suggestPeopleNum;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public boolean isUsing() {
        return using;
    }

    public void setUsing(boolean using) {
        this.using = using;
    }
}
